import type { NsGraph } from '@antv/xflow'

export interface INodeFactoryArgs {
  data: NsGraph.INodeConfig
  width: number
  height: number
  // X6_NODE_PORTAL_NODE_VIEW
  view: string
  component: React.ReactNode
}

/** 面板Dnd节点 */
export interface IPanelNode extends NsGraph.INodeConfig {
  /**  Dnd节点的popover的提示内容，可选  */
  popoverContent?: React.ReactNode
  /**  自定义节点  */
  renderComponent?: React.ComponentType<{ data: IPanelNode; isNodePanel: boolean }>
  /** 自定义数据 */
  data?: any
  /** disable */
  isDisabled?: boolean
}